﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewUser.aspx.cs" Inherits="Manager_User_ViewUser" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Untitled Page</title>
    <link href="../../Pub/Css/BodyStyles.css" rel="stylesheet" type="text/css" />
    <link href="../../Pub/Css/AdminStyles.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table width="100%" cellpadding="2" cellspacing="0">
<tr>
<td align="left">
<table border="1" bordercolor="#407db3" cellpadding="2" cellspacing="2" class="tbl_Comon-Search"
                        style="border-collapse: collapse; margin-left: 0px; width: 100%;" width="100%">
        <tr>
            <td align="center" nowrap="nowrap" rowspan="2" style="width: 87px" valign="middle">
                                <asp:Button ID="btnSearch" runat="server" CssClass="cssButton" Text="Tìm kiếm" Width="80px" OnClick="btnSearch_Click" /><br />
                <input id="Button1" class="cssButton" size="" style="width: 80px" type="button" value="Đóng lại" onclick="javascript:window.close()" /></td>
            <td nowrap="nowrap" rowspan="1" style="width: 109px" class="td_Title">
                                <asp:Label ID="Label1" runat="server" CssClass="lbl_Common-Search" Text="Họ tên"></asp:Label></td>
            <td nowrap="nowrap" rowspan="1" class="td_Control">
                                <asp:TextBox ID="txtName" runat="server" Height="20px" Width="98%"></asp:TextBox></td>
            <td nowrap="nowrap" class="td_Title" style="width: 80px">
                                <asp:Label ID="Label2" runat="server" CssClass="lbl_Common-Search" Text="Quyền hạn"></asp:Label></td>
            <td nowrap="nowrap" class="td_Control" style="width: 102px">
            <asp:DropDownList ID="ddlChuDe" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlChuDe_SelectedIndexChanged">
                            </asp:DropDownList></td>
        </tr>
    <tr>
        <td class="td_Title" nowrap="nowrap" rowspan="1" style="width: 109px">
            <asp:Label ID="Label3" runat="server" CssClass="lbl_Common-Search" Text="Tên đăng nhập"></asp:Label></td>
        <td class="td_Control" nowrap="nowrap" rowspan="1">
            <asp:TextBox ID="txtLogin" runat="server" Height="20px" Width="98%"></asp:TextBox></td>
        <td class="td_Title" nowrap="nowrap" style="width: 80px">
            <asp:Label ID="Label4" runat="server" CssClass="lbl_Common-Search" Text="Email"></asp:Label></td>
        <td class="td_Control" nowrap="nowrap">
            <asp:TextBox ID="txtEmail" runat="server" Height="20px" Width="97%"></asp:TextBox></td>
    </tr>
    </table>
</td>
</tr>
<tr>
    <td>
    <asp:GridView ID="grv_Master" runat="server" CellPadding="2" BorderColor="#407DB3" BorderWidth="1px"  AutoGenerateColumns="False" Width="100%" AllowPaging="True" DataKeyNames="UserID" PageSize="20" OnPageIndexChanging="grv_Master_PageIndexChanging">
        <Columns>
    
            <asp:TemplateField>
                <HeaderTemplate>
                    Họ tên
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("CusNm") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle  CssClass="cssBorderGrv" Width="40%"/>
                <HeaderStyle CssClass="cssBorderGrv" />
            </asp:TemplateField>            
            
              <asp:TemplateField>
                <HeaderTemplate>
                    Tên đăng nhập
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label55" runat="server" Text='<%# Eval("UserNm") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle  CssClass="cssBorderGrv" Width="25%"/>
                <HeaderStyle CssClass="cssBorderGrv" />
            </asp:TemplateField>
            
            <asp:TemplateField>
                <HeaderTemplate>
                    Email
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label5" runat="server" Text='<%# Eval("Email") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle  CssClass="cssBorderGrv" Width="15%"/>
                <HeaderStyle CssClass="cssBorderGrv" />
            </asp:TemplateField>
            
          
            <asp:TemplateField>
                <HeaderTemplate>
                    Quyền hạn
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="lblsex" runat="server" Text='<%# Eval("AutNm") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle CssClass="cssBorderGrv" HorizontalAlign="Left"  Width="15%" />
                <HeaderStyle CssClass="cssBorderGrv" /> 
            </asp:TemplateField>

           
        </Columns>
        <RowStyle CssClass="gvRowStyle" />
        <AlternatingRowStyle CssClass="gvAlternatingRowStyle" />
        <HeaderStyle CssClass="gvHeader" />
    </asp:GridView>

    </td>
</tr>
</table>
    </div>
    </form>
</body>
</html>



